Zip for WinRT
Opening a Zip File from Embedded Resources

You can load a file from your project's embedded resources by using the following code. In this example the project namespace is "ZipFileDemo". The Sample.zip file is located in the project’s root directory and has its Build property set to Embedded Resource.

Add the following imports statement to the top of your project:

C#
Copy Code
using System.Reflection;
using C1.C1Zip;

Add the following code to your project:

C#
Copy Code
// Open a zip file from embedded resources   
C1ZipFile zip = new C1ZipFile();
Assembly asm = typeof(MainPage).GetTypeInfo().Assembly;
Stream stream = asm.GetManifestResourceStream("ZipFileDemo.Sample.zip");
zip.Open(stream);

// Load entries into FlexGrid
//_flex.ItemsSource = zip.Entries;
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback